package com.mathset.common;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;

public class MathSetHandlerExceptionResolver implements
		HandlerExceptionResolver {

	private static Logger logger = Logger.getLogger(MathSetHandlerExceptionResolver.class);
	
	@Override
	public ModelAndView resolveException(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex) {
		logger.error("Catch Exception: ", ex);
		return new ModelAndView("/common/exception");
	}

}
